<template>
	<view class="person_network">
		<view>
			<web-view :src="link" @message="message"></web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				link:'',
			};
		},
		onLoad() {
			var that = this
			that.$tips.showLoading('加载中')
			that.$httpApi.userHetong().then((res)=>{
				that.$tips.hideLoading()
				if(res.code==1){
					that.link=res.data.link
				}
			})
		},
		methods:{
			// 
			message(event){
				var that = this
				that.$store.dispatch('GetUserInfo')
				setTimeout(function(){
					uni.navigateBack()
				},2000)
			},
		}
		
	}
</script>

<style lang="less">
	.person_network{
		width: 100%;
	}
</style>
